<template>
  <div class="wrap">
      <div class="greyLine"></div>
      <div class="titleWarp">
        <div class="titleItem titleItemActiv">推荐</div>
        <div class="titleItem">配饰</div>
        <div class="titleItem">配饰</div>
        <div class="titleItem">配饰</div>
        <div class="titleItem">配饰</div>
        <div class="titleItem">配饰2</div>
        <div class="titleItem">配饰3</div>
        <div class="titleItem">配饰</div>
      </div>
      <div class="filterWrap">
        <div class="filterItem">
          价格
          <img src="@/assets/paixu.png" alt="" />
        </div>
        <div class="filterItem filterItemLine"></div>
        <div class="filterItem">
          销量
          <img src="@/assets/paixu.png" alt="" />
        </div>
      </div>
      <div class="productListWrap">
        <div class="productItem">
          <img src="@/assets/dele/goods.png" alt="" class="proPosterLeft" />
          <div class="proIntroRight2">
            <p class="proTitle2">灶门炭治郎手办,鬼灭之刃组合手办强...</p>
            <p class="saleNum2">已售100</p>
            <div class="priceWrap2">
              <em class="price2">￥300</em>
              <em class="addShoppingCar2" @click="show = true">加入购物车</em>
            </div>
          </div>
        </div>
        <div class="productItem">
          <img src="@/assets/dele/goods.png" alt="" class="proPosterLeft" />
          <div class="proIntroRight2">
            <p class="proTitle2">灶门炭治郎手办,鬼灭之刃组合手办强...</p>
            <p class="saleNum2">已售100</p>
            <div class="priceWrap2">
              <em class="price2">￥300</em>
              <em class="addShoppingCar2">加入购物车</em>
            </div>
          </div>
        </div>
      </div>
      <div style="height: 83px; width: 100%"></div>
    </div>
</template>

<script>
import { Overlay, Stepper } from "vant";
export default {
  name: "App",
  data() {
    return {
      value: "",
      showCar: false,
      show: false,
    };
  },
  mounted() {},
  methods: {
    onSearch() {},
  },
  created() {},
  components: {
    [Overlay.name]: Overlay,
    [Stepper.name]: Stepper,
  },
};
</script>

<style scoped>
.wrap {

}
.titleWarp {
  width: calc(100% - 30px);
  margin: 20px auto;
  height: 35px;
  line-height: 30px;
  overflow-y: hidden;
  overflow-x: scroll;
  display: -webkit-box;
}
.titleItem {
  font-size: 15px;
  font-weight: 500;
  color: #181818;
  float: left;
  margin-right: 30px;
  overflow: hidden;
}
.titleItemActiv {
  font-size: 21px;
  font-weight: 500;
  color: #181818;
  border-bottom: 4px solid #000;
}
.filterWrap {
  width: calc(100% - 46px);
  margin: 0 auto;
  height: 34px;
  line-height: 34px;
  background: #f6f7f9;
  border-radius: 17px;
  font-size: 12px;
  font-weight: 500;
  color: #666666;
  padding-left: 26px;
  margin-top: 10px;
}
.filterItem {
  float: left;
  margin-right: 15px;
}
.filterItem > img {
  width: 5px;
  height: 5px;
  padding-bottom: 2px;
}
.filterItemLine {
  height: 15px;
  width: 1px;
  background-color: #e5e5e5;
  margin-top: 10px;
}
.productListWrap {
  width: calc(100% - 30px);
  margin: 20px auto;
}
.productItem {
  overflow: hidden;
  display: flex;
  justify-content: space-between;
  margin-bottom: 20px;
}
.proPosterLeft {
  width: 24%;
  height: 75px;
}
.proIntroRight2 {
  width: 70%;
}
.proTitle2 {
  width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 0px;
}
.saleNum2 {
  margin-top: 9px;
  font-size: 10px;
  font-weight: 300;
  color: #666666;
  text-align: left;
  margin-bottom: 0px;
}
.priceWrap2 {
  margin-top: 4px;
  display: flex;
  justify-content: space-between;
}
.price2 {
  font-size: 10px;
  font-weight: bold;
  color: #ff4646;
}
.addShoppingCar2 {
  padding: 5px 8px;
  height: 18px;
  line-height: 18px;
  background: #f48f5b;
  border-radius: 15px;
  font-size: 10px;
  font-weight: bold;
  color: #ffffff;
}
</style>
